Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter Notebook generation #74

Merged
merged 25 commits into from
Aug 29, 2024
Merged

Jupyter Notebook generation #74

merged 25 commits into from
Aug 29, 2024

Conversation

Simcornelis
Copy link
Collaborator

No description provided.

Simcornelis and others added 22 commits April 2, 2024 17:29
- Works for tests/tcp/01-iperf.npf test, but not much more testing
This also renames all features to y_FEATURE

So instead of THROUGHPUT the column will be y_THROUGHPUT

That allows to find "outputs"/features easily without any metadata given
to the dataset
- You can't use a global constant in the template to toggle Jinja if statements (settings like log scale, or savefig).
- The variables used are from the dict of the rendering function.
Run with
`python3 npf_run.py --test tests/tcp/04-iperf.npf --notebook results/iperf2/2.0.9/iperf-4-nb.ipynb`
npf/Graph.py Outdated
@@ -0,0 +1,77 @@
from npf.types.dataset import convert_to_xyeb
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In python filenames are lowercase.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Git didn't pick up on the Graph.py to graph.py renaming, so I'll force it.

@@ -0,0 +1,322 @@
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this template be changed by the user easily? The path to this should be an overwriteable default.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, working on it.

@@ -1030,6 +953,9 @@ def lam(x):


versions = []
"""Vars_all is the set of all variable combination that have some value. Taking the iperf case, it will be
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for those comments :)

@tbarbette
Copy link
Owner

Can you also add an example ipynb in doc/ ?

@Simcornelis Simcornelis requested a review from tbarbette August 28, 2024 15:03
@tbarbette
Copy link
Owner

Semms ok! Thanks!

@tbarbette tbarbette merged commit b564ccf into tbarbette:master Aug 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants